package com.bjpower.models.request;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class MerchINfoRequest {
    private String userNo;
    @NotNull(message = "登录名不能为空")
    @Size(min = 6, max = 20, message = "登录名长度为6-20位")
    private String loginName;
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
    @NotNull(message = "商品名字不能为空")
    private String shopName;
    @NotNull(message = "商品不能为空")
    private String shopScope;
    @NotNull(message = "邮箱不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", message = "邮箱格式不正确")
    private String userEmail;
}
